package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
public class Carinfo {
    private Long id;
    //车主
    private String username;
    //车辆品牌
    private String carname;
    //车的型号
    private String cartype;
     //车牌号
    private String carnum;
     //排量
    private Integer displacement;
     //购买日期
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "CMT+8")
    private Date purchasedate;
    //估价
    private Long marketval;
    //分类
    private int sort;
    //车辆的大小(根据字典表查询相对的的型号)
    private DictionaryDetail carsize;
    //备注信息
    private String info;
    //车辆状态
    private Integer state;

}